package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: CustomerEncryption
 * @Description: TODO
 * @author fanyb
 * @date Oct 22, 2015 5:55:12 PM
 * @version v1.0
 */
@Entity
@Table(name = "tb_customer_encryption")
public class CustomerEncryption {
  
  private String id;
  private String customerId;
  private String encryptionType;
  private String encryptionKey;
  
  @Id
  @Column(name = "id", unique = true, nullable = false, length = 45)
  @GeneratedValue(generator = "ID")
  @GenericGenerator(name = "ID", strategy = "uuid")
  public String getId() {
    return id;
  }
  
  public void setId(String id) {
    this.id = id;
  }
  
  @Column(name = "customer_id")
  public String getCustomerId() {
    return customerId;
  }
  
  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }
  
  @Column(name = "encryption_type")
  public String getEncryptionType() {
    return encryptionType;
  }
  
  public void setEncryptionType(String encryptionType) {
    this.encryptionType = encryptionType;
  }
  
  @Column(name = "encryption_key")
  public String getEncryptionKey() {
    return encryptionKey;
  }
  
  public void setEncryptionKey(String encryptionKey) {
    this.encryptionKey = encryptionKey;
  }
  
  @Override
  public String toString() {
    return "CustomerEncryption [id=" + id + ", customerId=" + customerId + ", encryptionType="
        + encryptionType + ", encryptionKey=" + encryptionKey + "]";
  }
  
  
}
